BEGIN{
 FS="[<>]";
 i=0;
}
{
  if(index($3,".gz")){
  	gz_url_list[i]=$3;
        i++;
  }
}
END{
   if(i==0){
   			
       "date -d '-1 day' +%Y%m%d"|getline date_yesterday;
       last_svr_timestamp=date_yesterday*10000+2350;
   		 
   		}
   if(i==1){
        "date -d '-1 day' +%Y%m%d"|getline date_yesterday;
        last_svr_timestamp=date_yesterday*10000+2355;
   			
   	}
   if(i>1){
       
        split(gz_url_list[i-2],idx,".");
        last_svr_timestamp=idx[1]; 
   }
  
   printf("last_svr_timestamp=%s\n",last_svr_timestamp);
}

